package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 店铺链接实体类
 */
@Data
@TableName("yy_shop_link")
@ApiModel(value = "店铺链接", description = "店铺链接信息")
public class ShopLink {
    
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID", example = "1")
    private Long id;
    
    /**
     * 店铺ID
     */
    @ApiModelProperty(value = "店铺ID", required = true, example = "1")
    private Long shopId;
    
    /**
     * 链接开启状态(0为关闭,1为开启)
     */
    @ApiModelProperty(value = "链接开启状态", notes = "0为关闭,1为开启", example = "1")
    private Integer status;
    
    /**
     * 店铺链接地址
     */
    @ApiModelProperty(value = "店铺链接地址", example = "https://shop.example.com/s/123456")
    private String linkUrl;
    
    /**
     * 店铺短地址
     */
    @ApiModelProperty(value = "店铺短地址", example = "s123456")
    private String shortUrl;
    
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
} 